﻿/**********************************************************************************
 * Description:     
 * MemberVariable:
 * Functions:       
 * Modify information:     
 * 2008-8-5     New           DuYaoHui     Create Class
 * 
 * ********************************************************************************/
using System;
using System.Web.UI;

namespace Fjaspx.UI.Web
{
    public partial class Administrator_news_all : AdminPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            if (!Page.IsPostBack)
            {
                try
                {
                    if (Request["id"] != null || Request["id"].Trim() != "")
                    {
                        int id = Convert.ToInt32(Request["id"]);

                        ShowInfo(id);
                    }
                }
                catch { Response.Redirect("/administrator/Message.aspx?message=没有该条信息！ 或信息已经被删除！&z=no"); }
            }
        }
        private void ShowInfo(int bh)
        {
            Fjaspx.Sys.Bll.ROYcms_news bll = new Fjaspx.Sys.Bll.ROYcms_news();
            Fjaspx.Sys.Model.ROYcms_news model = bll.GetModel(bh);

            this.lblbh.Text = model.bh.ToString();
            //this.HyperLink_edit.NavigateUrl = "edit.aspx?id=" + model.bh.ToString();
            this.lbltitle.Text = model.title;
            this.lblzhaiyao.Text = model.zhaiyao;
            this.lblclassname.Text = model.classname.ToString();

            this.lblcontents.Text = model.contents;
            this.lblinfor.Text = model.infor;
            this.lblauthor.Text = model.author;

            this.lbltag.Text = model.tag;

            this.lbltime.Text = model.time.ToString();


        }
    }
}